<!--添加推荐位内容-->
<div class="dialog_content">
	<form id="info_form" action="{:url('addDo')}" method="post">
	<table width="100%" class="table_form">
		<tr>
			<th>选择数据 :</th>
			<td>
				<span id="catebox"></span>
				<button class="J_showdialog" data-pic="0" data-uri="{:url('House/publicSelectContent', ['type'=>'checkbox','menuid'=>$menuid,'model'=>$model])}" data-acttype="ajax" data-title="选择房源" data-id="select" data-width="670" data-height="500" data-boxtype="checkbox" data-boxname="aid" data-val="house_id" data-displaybox="catebox">选择房源</button>
				<input type="hidden" name="house_id" id="house_id" value="">
			</td>
		</tr>

        <tr>
		<th>状态 :</th>
            <td>
                <label><input type="radio" name="status" value="1" checked="checked"> 启用</label>&nbsp;&nbsp;
                <label><input type="radio" name="status" value="0"> 禁用</label>
            </td>
        </tr>
	</table>
		<input type="hidden" name="cate_id" value="{$cate_id}">
		<input type="hidden" name="model" value="{$model}">
	</form>
</div>
<script>
$(function(){
	$('#info_form').ajaxForm({success:complate,dataType:'json'});
	function complate(result){
		if(result.status == 1){
			$.yingloujie.tip({content:result.msg});
			setTimeout(function(){window.location.reload();},1000);
		} else {
			$.yingloujie.tip({content:result.msg, icon:'alert'});
		}
	}
	$("#catebox b.del").live('click',function(){
		var id = $(this).attr('data');
		$(this).parent().remove();
		var oldval = $("#house_id").val();
		$("#house_id").val(oldval.replace(id+',',''));
	});
});
</script>